#include "client.h"
#include "log.h"

#include <stddef.h>
#include <memory.h>
#include <stdlib.h>

rpc_client_t*
rpc_client_create(client_config_t *config)
{
    // 创建rpc client并初始化
    rpc_client_t* client = (rpc_client_t*)malloc(sizeof(rpc_client_t));
    if(client == NULL) {
        LOG_ERROR("Failed to allocate memory for RPC client");
        return NULL;
    }
    (void)memset(client, 0, sizeof(rpc_client_t));

    return NULL;
}

ret_t rpc_client_destroy(rpc_client_t* client)
{
    return RET_SUCCESS;
}